﻿//[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Web.config", Watch = true)]
//Gqq.CodeFirst.exe.config
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Gqq.CodeFirst.exe.config", Watch = true)]
namespace Gqq.Common.Helper.CodeFirstLog
{
    /// <summary>
    /// 日志管理类
    /// </summary>
    public class CodeLogManager
    {
        public static readonly log4net.ILog NLog = log4net.LogManager.GetLogger("NormalLog");
        public static readonly log4net.ILog VLog = log4net.LogManager.GetLogger("VipLog");
        public static readonly log4net.ILog DLog = log4net.LogManager.GetLogger("DefaultLog");

        public static void InfoFomat(string format,params object[] args)
        {
            DLog.InfoFormat(format, args);
        }

        public static void Info(object message)
        {
            DLog.Info(message);
        }

        public static void Error(object msg)
        {
            DLog.Error(msg);
        }

        public static void Debug(object message)
        {
            DLog.Debug(message);
        }
    }
}
